﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="icon" type="image/gif" href="~/img/animated_favicon1.gif">
    <link href="~/UILibs/easyui/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/UILibs/easyui/themes/icon.css" rel="stylesheet" />
    <link href="~/Css/css.css" rel="stylesheet" />

    <script src="~/Scripts/jquery-1.7.1.min.js"></script>
    <script src="~/Scripts/jquery.jqprint-0.3.js"></script>
    <script src="~/UILibs/easyui/jquery.easyui.min.js"></script>

    <script src="~/UILibs/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    <script src="~/Scripts/datagrid-detailview.js"></script>
    <title></title>
    <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script>
    <script type="text/javascript">

        $(function () {

            //$('#txtDate1').datebox({
            //    onSelect: function () { searchData() }
            //});
            $("#data").datagrid({
                fit: true,
                title: '理货员上架记录表',
                striped: true,
                rownumbers: true,
                columns:    // logId  logTime  logType  waresCode     status   RealName   userid  storeName    waresName num
                    [[

                            { field: 'waresCode', title: '商品编号', width: 180, halign: 'center', align: 'center' },
                            { field: 'waresName', title: '商品名称', width: 250, halign: 'center', align: 'center', },
                            { field: 'rate', title: '上架频次', width: 200, halign: 'center', sortable: true, align: 'center', },
                            { field: 'avgUpNum', title: '平均上架数量', width: 200, sortable: true, halign: 'center', align: 'center', },
                            //{ field: 'logId', title: '操作编号', width: 80, halign: 'center', align: 'center' },
                            //{ field: 'userid', title: '操作人员编号', width: 0, halign: 'center', align: 'center', hidden: true },
                            //{ field: 'RealName', title: '操作人姓名', width: 100, halign: 'center', align: 'center' },
                            //{ field: 'logType', title: '操作类型', width: 80, halign: 'center', align: 'center', },
                            //{ field: 'waresCode', title: '商品编号', width: 180, halign: 'center', align: 'center' },
                            //{ field: 'waresName', title: '商品名称', width: 250, halign: 'center', align: 'center', },
                            //{ field: 'num', title: '操作数量', width: 80, halign: 'center', align: 'center', },
                            //{ field: 'storeName', title: '操作店铺', width: 150, halign: 'center', align: 'center', },
                            //{ field: 'logTime', title: '操作时间', width: 180, halign: 'center', align: 'center', },
                             
                    ]],
                singleSelect: true,
                loadMsg: '正在加载数据,请耐心等待.......',
                url: pageConfig.getAction,
                queryParams: {
                    waresName: $('#txtDate1').val(),
                },  
                pagination: true,
                pageSize: 25,
                pageList: [25, 30, 35],
                sortName: 'avgUpNum',  //平均上架数量 排序
                sortOrder: 'desc',
                toolbar: '#tool',
            });
            $("#formdialog").dialog({
                width: 400,
                height: 250,
                closed: true,
                modal: true,
                buttons: '#btns',
            });

        });

        var pageConfig = {
            getAction: '@Url.Action("GetNoticeEf")',// GetNoticeEf   GetNotice 
            modifyAction: '@Url.Action("ModifyReply")',

        };

      


        //查询
        function searchData() {

            $("#data").datagrid('load', {
                waresName: $('#txtDate1').val(),

            });
        }

        //取消按钮
        function closeDptDialog() {
            $("#formdialog").dialog("close")
        }

        function complete() {
            $("#data").datagrid("load");
            $.messager.progress("close");
        }

    </script>
</head>
<body class="easyui-layout" style="width: 100%; height: 100%">
    <div data-options="region:'center'" id="dataPrint">

        <table id="data" style="height: 50px"></table>

    </div>

    <div id="tool" style="padding: 30px;">
  
        <div>
            &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
                商品名称：<input id="txtDate1" type="text" onchange="searchData()" />

            &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 
            <a class="easyui-linkbutton" iconcls="icon-search" onclick="searchData();">查询</a>
            &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp &nbsp&nbsp&nbsp 

        </div>

    </div>


    <style>
        #dataPrint.datagrid-btable tr {
            height: 50px;
        }
    </style>
</body>
</html>
